package spike.pool;

import java.net.Socket;
import java.util.concurrent.TimeUnit;

/**
 * Created by dmitry on 11/12/14.
 */
public class MyPoolFactory implements PoolFactory<Socket> {
    @Override
    public MyConnectionPool newConnectionPool(int capacity, ConnectionSource<Socket> src) {
        return new MyConnectionPool<Socket>(capacity, src);
    }

    @Override
    public MyConnectionPool newConnectionPool(int init, int max, long keepAliveTime, TimeUnit unit, ConnectionSource<Socket> src) {
        return new MyConnectionPool<Socket>(init, max, keepAliveTime, unit, src);
    }
}
